Loop (for)
Example (Step 4)
How much money has Julien?
Julien spends £400 a month
on rent, £75 a month on food,
and £100 a month on other
expenses. He earns 2% per
month on any saving money.
for (x = 1; x<12; x++){
InterestEarned = Total
* InterestRate;
Total = Total +
InterestEarned +
MonthlyIncome -
MonthlyExpenses
}; cout << total;